<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.realsatan.gae.wtm.IndexContent"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<link type="text/css" rel="stylesheet" href="/main.css">
	<link type="text/css" rel="stylesheet" href="wtm.css">
	<title>Wiki TODO Message?</title>
</head>

<body>
<div id="wrapper">

<%@ include file="/head.jsp"%>

	
	<!-- 中部内容 -->
	<div id="center">
		登陆后留言：<br />
		<form action="index.html" method="post">
			<div>
				<textarea name="message" rows="3" cols="70"></textarea>
				<input type="hidden" name="action" value="commit" />
			</div>
			<div>
				<input type="submit" value="提交" />
			</div>
		</form>
		<hr />
		<%
			IndexContent sendcontent = new IndexContent();
			if(request.getAttribute("sendcontent") != null) {
				sendcontent = (IndexContent)request.getAttribute("sendcontent");
			} else {
				response.sendRedirect("/wtm/index.html");
				//request.getRequestDispatcher("/wtm").forward(request, response);
				return;
			}
			
		
		%>
		
		<div>
			<%=sendcontent.getContent() %>
		</div>
		
	</div>

<%@ include file="/foot.jsp"%>

</div>
</body>
</html>
